package com.clz.appdesign.myapp.view.entiity;

/**
 * @author chenliangzhi
 * @date 2018/5/31
 * @describe 饼状图实体类
 */

public class Pie {
    //用户关心的数据
    //名字
    private String name;
    //数值
    private float value;
    //每个图占据的百分比
    private float percent;

    //非用户关心的数据
    //颜色
    private int color;
    //角度
    private float angle;

    public Pie(String name, float value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getValue() {
        return value;
    }

    public void setValue(float value) {
        this.value = value;
    }

    public float getPercent() {
        return percent;
    }

    public void setPercent(float percent) {
        this.percent = percent;
    }

    public int getColor() {
        return color;
    }

    public void setColor(int color) {
        this.color = color;
    }

    public float getAngle() {
        return angle;
    }

    public void setAngle(float angle) {
        this.angle = angle;
    }
}
